package com.woolink.per.sys.authority.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Authority entity. @author MyEclipse Persistence Tools
 */

public class Authority implements java.io.Serializable
{
    
    // Fields    
    
    private Integer authorityId;
    
    private String authorityName;
    
    private String authorityDesc;
    
    private Integer enabled;
    
    private Set authorityResources = new HashSet(0);
    
    private Set roleAuthorities = new HashSet(0);
    
    // Constructors
    
    /** default constructor */
    public Authority()
    {
    }
    
    /** full constructor */
    public Authority(String authorityName, String authorityDesc,
            Integer enabled, Set authorityResources, Set roleAuthorities)
    {
        this.authorityName = authorityName;
        this.authorityDesc = authorityDesc;
        this.enabled = enabled;
        this.authorityResources = authorityResources;
        this.roleAuthorities = roleAuthorities;
    }
    
    // Property accessors
    
    public Integer getAuthorityId()
    {
        return this.authorityId;
    }
    
    public void setAuthorityId(Integer authorityId)
    {
        this.authorityId = authorityId;
    }
    
    public String getAuthorityName()
    {
        return this.authorityName;
    }
    
    public void setAuthorityName(String authorityName)
    {
        this.authorityName = authorityName;
    }
    
    public String getAuthorityDesc()
    {
        return this.authorityDesc;
    }
    
    public void setAuthorityDesc(String authorityDesc)
    {
        this.authorityDesc = authorityDesc;
    }
    
    public Integer getEnabled()
    {
        return this.enabled;
    }
    
    public void setEnabled(Integer enabled)
    {
        this.enabled = enabled;
    }
    
    public Set getAuthorityResources()
    {
        return this.authorityResources;
    }
    
    public void setAuthorityResources(Set authorityResources)
    {
        this.authorityResources = authorityResources;
    }
    
    public Set getRoleAuthorities()
    {
        return this.roleAuthorities;
    }
    
    public void setRoleAuthorities(Set roleAuthorities)
    {
        this.roleAuthorities = roleAuthorities;
    }
    
}